import scrapy

# scrapy crawl itcast

class ItcastSpider(scrapy.Spider):
    name = 'itcast'
    allowed_domains = ['itcast.cn']
    start_urls = ['https://slj.changde.gov.cn/zhdt/tzgg/content_820957']

    def parse(self, response):
        filename = "teacher.html"
        open(filename, 'w').write(response.body)

